<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设备管理</title>
    <link rel="icon" href="../static/img/icon.png">
    <link rel="stylesheet" href="../static/js/layui/css/layui.css">
    <link rel="stylesheet" href="../static/css/animate.min.css">
    <link rel="stylesheet" href="../static/css/style.css">
    <link rel="stylesheet" href="../static/css/device.css">


</head>

<body>
    <div class="app" style="overflow: hidden;">
        <div class="header animate__animated animate__slideInDown">
            <div class="header-title"></div>
            <div class="header-menu">
            </div>
            <div class="header-tool">
                <img src="../static/img/username.png" alt="" onclick="showPasswordWindow()">
                <img src="../static/img/logout.png" alt="" onclick="logout()">
            </div>
        </div>
        <div class="contain">
            <div class="left-block">
                <ul class="menu-list">
                </ul>
            </div>
            <div class="right-block">
                <div class="search-bar layui-form">
                    <div>
                        <input type="text" name="name" id="search-name" placeholder="请输入设备名称" autocomplete="off"
                            class="layui-input">
                    </div>
                    <div>
                        <input type="text" name="code" id="search-code" placeholder="请输入设备号" autocomplete="off"
                            class="layui-input">
                    </div>
                    <div>
                        <select id="search-type">
                            <option value="">请选择设备类型</option>
                            <option value="1">水质监测</option>
                            <option value="2">视频监控</option>
                            <option value="3">警戒球机</option>
                        </select>
                    </div>
                    <button class="layui-btn" lay-submit lay-filter="search">查询</button>
                    <button type="button" class="layui-btn" onclick="showWindow('新增')">
                        新增
                    </button>
                </div>
                <div class="search-content">
                    <table id="table" lay-filter="filter"></table>
                </div>
            </div>
        </div>
    </div>
    </div>

    <script type="text/html" id="switch-status">
        <input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="启用|停用"
            lay-filter="updateStatus" {{ d.status == 1 ? 'checked' : '' }}>
    </script>

    <script type="text/javascript" src="../static/js/util/jquery.min.js"></script>
    <script type="text/javascript" src="../static/js/biz/app.js"></script>
    <script type="text/javascript" src="../static/js/layui/layui.all.js"></script>
    <script type="text/javascript" src="../static/js/biz/device.js"></script>

</body>

</html>